package research_team.client.generated.business;

import java.util.*;
import research_team.client.notgenerated.eventFramework.PropertyChangeSupport;

/**
* TODO javadoc
*/
public class CallForPaper   {

	private String title;
	private String category;
	private Date deadline;
	private String url;
	private Collection<Paper> papers;
	private PropertyChangeSupport<String> propertychangesupporttitle;
	private PropertyChangeSupport<String> propertychangesupportcategory;
	private PropertyChangeSupport<Date> propertychangesupportdeadline;
	private PropertyChangeSupport<String> propertychangesupporturl;
	public void setPropertychangesupporttitle(PropertyChangeSupport<String> propertychangesupporttitle) {
		this.propertychangesupporttitle = propertychangesupporttitle;
	}
	public void setPropertychangesupportcategory(PropertyChangeSupport<String> propertychangesupportcategory) {
		this.propertychangesupportcategory = propertychangesupportcategory;
	}
	public void setPropertychangesupportdeadline(PropertyChangeSupport<Date> propertychangesupportdeadline) {
		this.propertychangesupportdeadline = propertychangesupportdeadline;
	}
	public void setPropertychangesupporturl(PropertyChangeSupport<String> propertychangesupporturl) {
		this.propertychangesupporturl = propertychangesupporturl;
	}
 
	public String get_title() {
		return title;
	}

	public void set_title(String title) {
		if(propertychangesupporttitle!=null) {
			propertychangesupporttitle.firePropertyChange(this.title, title);
		}
		System.err.println(title);
		
		this.title = title;
	}

	public String get_category() {
		return category;
	}

	public void set_category(String category) {
		if(propertychangesupportcategory!=null) {
			propertychangesupportcategory.firePropertyChange(this.category, category);
		}
		System.err.println(category);
		
		this.category = category;
	}

	public Date get_deadline() {
		return deadline;
	}

	public void set_deadline(Date deadline) {
		if(propertychangesupportdeadline!=null) {
			propertychangesupportdeadline.firePropertyChange(this.deadline, deadline);
		}
		System.err.println(deadline);
		
		this.deadline = deadline;
	}

	public String get_url() {
		return url;
	}

	public void set_url(String url) {
		if(propertychangesupporturl!=null) {
			propertychangesupporturl.firePropertyChange(this.url, url);
		}
		System.err.println(url);
		
		this.url = url;
	}


}